package com.kifas.model.xml;

import java.io.Serializable;
import java.util.Date;
import java.util.Set;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class KontrakModel implements Serializable {

	private static final long serialVersionUID = -2676849600235519386L;

	private Long idKontrak;

	private String nomorKontrak;

	@XmlElement(name = "supplierModel")
	private SupplierModel supplier;
	
	private Set<KontrakPembelianModel> kontrakPembelians;

	private Date tanggal;
	
	private String createdBy;
	
	private Date createdDate;

	public KontrakModel() {
	}

	public KontrakModel(Long idKontrak, String nomorKontrak,
			SupplierModel supplier, Date tanggal, String createdBy, Date createdDate) {
		this.idKontrak = idKontrak;
		this.nomorKontrak = nomorKontrak;
		this.supplier = supplier;
		this.tanggal = tanggal;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public KontrakModel(Long idKontrak, String nomorKontrak,
			SupplierModel supplier, Date tanggal, Set<KontrakPembelianModel> kontrakPembelians, String createdBy, Date createdDate) {
		this.idKontrak = idKontrak;
		this.nomorKontrak = nomorKontrak;
		this.supplier = supplier;
		this.tanggal = tanggal;
		this.kontrakPembelians = kontrakPembelians;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}
	
	public Long getIdKontrak() {
		return idKontrak;
	}

	public void setIdKontrak(Long idKontrak) {
		this.idKontrak = idKontrak;
	}

	public String getNomorKontrak() {
		return nomorKontrak;
	}

	public void setNomorKontrak(String nomorKontrak) {
		this.nomorKontrak = nomorKontrak;
	}

	public SupplierModel getSupplier() {
		return supplier;
	}

	public void setSupplier(SupplierModel supplier) {
		this.supplier = supplier;
	}

	public Date getTanggal() {
		return tanggal;
	}

	public void setTanggal(Date tanggal) {
		this.tanggal = tanggal;
	}

	public void setKontrakPembelians(Set<KontrakPembelianModel> kontrakPembelians) {
		this.kontrakPembelians = kontrakPembelians;
	}

	public Set<KontrakPembelianModel> getKontrakPembelians() {
		return kontrakPembelians;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

}
